'use strict';
var pager=pager||{};
pager={
	init:function(pageSize,totalPage,callback){
		$.jqPaginator("#pager", {
            visiblePages : 7,
            currentPage : 1,
            pageSize : pageSize,
            totalPages : totalPage,
            first : '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
            prev : '<li class="prev"><a href="javascript:void(0);"><i class="arrow arrow2"><\/i>上一页<\/a><\/li>',
            next : '<li class="next"><a href="javascript:void(0);">下一页<i class="arrow arrow3"><\/i><\/a><\/li>',
            last : '<li class="last"><a href="javascript:void(0);">末页<\/a><\/li>',
            page : '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
            onPageChange : function (num, type) {
                if (type == "change") {
                	if (callback) {
                		callback(num);
                	};
                };
            }
        });
	}
};